﻿
using DataWorks_Tools.MappModals.CalInputModals;
using DataWorks_Tools.MappModals.CalSaveModals;

namespace DataWorks_Tools.HalfHourCalSave.Common.DataImport
{



    public static class Tools_RecordImport
    {
        /// <summary>
        /// 记录单位里程导入数据库的记录
        /// </summary>
        /// <param name="loginname"></param>
        /// <param name="year"></param>
        /// <param name="sub"></param>
        /// <param name="vehicle"></param>
        /// <param name="project"></param>
        /// <returns></returns>
        public static calsave_record GetImportRecord(BaseCalInputModel row, int year,string dirname, byte importtype)
        {
            calsave_record result = new calsave_record();
            result.loginname = row.loginname;
            result.vehicle = row.vehicle;
            result.project = row.project;
            result.remarks= row.remarks;
            //改为文件夹名
            result.importdirectoryname = dirname;
            result.importtype = importtype;
            result.importyear = year;
            return result;
        }

    }
}
